#ifndef __PERSON_H__
#define __PERSON_H__

#include <iostream>
#include <string>
#include "Length.h"

using std::string;
using std::ostream;
class PersonList;

const unsigned char MAX_PERSON_GROUP = 2;
const unsigned char MIN_PERSON_GROUP = 1;

class Person
{
public:
	Person(string name, const Length& height, unsigned char flag = 1);
        Person(const Person& p);
	friend ostream& operator<<(ostream& os, const Person& p);
        void displayByGroup(ostream& os, unsigned char groupFlag);
	
private:
	string name_m;
	Length height_m;
	unsigned char groupFlag_m;

};

#endif
